import pandas as pd
import numpy as np

'''
data = {
    "country": ["Italy", "France", "Spain", "Italy"],
    "points": [85, 90, 82, 88]
}
reviews = pd.DataFrame(data)


result = reviews.points.describe()
print(result)
'''
import pandas as pd

# 模拟 reviews 数据
data = {
    'points': [85, 88, 90, 92, 87]
}
reviews = pd.DataFrame(data)

# 计算 points 列的平均值
review_points_mean = reviews.points.mean()

# 使用 map() 方法对 points 列的数据进行转换
transformed_points = reviews.points.map(lambda p: p - review_points_mean)

print("原始 points 列数据：")
print(reviews.points)
print("\n转换后的 points 列数据：")
print(transformed_points)